package util

import "github.com/gomodule/redigo/redis"

var RedisPool *redis.Pool

func NewRedisConn() {
	//----------------redis缓存池------------------
	RedisPool = &redis.Pool{
		MaxIdle:   100,
		MaxActive: 100,
		Dial: func() (redis.Conn, error) {
			c, err := redis.Dial("tcp", "127.0.0.1:6379")
			if err != nil {
				return nil, err
			}
			return c, nil
		},
	}
}
